package com.xoa.service.guideGoal;

import com.xoa.model.guideGoal.GuideGoal;
import com.xoa.util.ToJson;
import com.xoa.util.treeUtil.TreeGirdNode;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by 张丽军 on 2017/7/28.
 */
public interface GuideGoalService {

    public ToJson<GuideGoal> getSupManageByTypeId(HttpServletRequest request, Integer typeId, Integer page, Integer pageSize, Boolean useFlag);

    public ToJson<TreeGirdNode> getSupManageMenu(HttpServletRequest request, GuideGoal guideGoal);

    public ToJson<GuideGoal> addSupervision(HttpServletRequest request, GuideGoal guideGoal);

    public ToJson<GuideGoal> deleteSupervisionBySid(HttpServletRequest request, Integer sid);

    public ToJson<GuideGoal> getSupAssistDetail(HttpServletRequest request, Integer sid, String bodyId);

    public ToJson<GuideGoal> selectCountList(Map<String, String> mapParamter, Integer sid, String beginDate, String endDate, String typeId);

    public ToJson<GuideGoal> queryCountSupervisionByStatus();

    public ToJson<GuideGoal> getSupApplyTaskList(Integer status, Integer sid, HttpServletRequest request);

	/**
	 * 创建作者:   杨 胜
	 * 创建日期:   2017-8-3 下午3:40:04
	 * 方法介绍:
	 * 参数说明:   @param deptId
	 * 参数说明:   @return
	 * @return     Map<String,Object>
	 */
    GuideGoal queryCountByDept(Integer deptId, Map<String, Object> map);


	/**
	 * 创建作者:   杨 胜
	 * 创建日期:   2017-8-8 下午4:46:21
	 * 方法介绍:
	 * 参数说明:   @param supervision
	 * 参数说明:   @param request
	 * 参数说明:   @return
	 * @return     ToJson<Supervision>
	 */
	public ToJson<GuideGoal> updateSupStatus(GuideGoal guideGoal,
											 HttpServletRequest request);

	ToJson<GuideGoal> updateSupervision(HttpServletRequest request, GuideGoal guideGoal);
}
